package com.systop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systop.entity.SysUser;

import java.util.List;

public interface SysUserDao extends BaseMapper<SysUser> {
    //根据账号密码验证登录
    public SysUser findUserByCodeAndPwd(
        // @Param("usercode") String usercode,
        // @Param("userpass") String userpass
        SysUser sysUser
    );
    //查询全部用户信息
    public List<SysUser> findAllUser(SysUser sysUser);
    //查询用户数量
    public int countAllUser(SysUser sysUser);

    //查询收货人
    public int findConsigneeByUserId(SysUser sysUser);
    //删除用户
    public int delUser(SysUser sysUser);

    //查询手机号是否存在
    public Long selectPhone(String userPhone);
    //添加用户查重
    public int findByUserCode(SysUser sysUser);
    //添加用户
    public int addUser(SysUser sysUser);

    //更新用户
    public int udpUser(SysUser sysUser);
}
